<template>
  <button
      @click="clickHandler"
  >发送Axios请求
  </button>
</template>

<script setup lang="ts">
import useMockRequest from '@/api/mockRequest';

const { getUserInfoByAge } = useMockRequest();

const clickHandler = async (): Promise<void> => {
  const res = await getUserInfoByAge(20);
  console.log(res);
}
</script>

<style>
</style>
